/*class <class_name> 
{
	* Cac thuoc tinh
	* Cac phuong thuc	
};
*/
// Cai dat lop connguoi : hummans

#include <iostream>
using namespace std;


class Hummans
{
	private:
		// cac thuoc tinh - du lieu
		string name;
		int age;

	public:
		
		// Ham khoi tao - constructor
		/*
			- Cung ten voi lop
			- Khong co du lieu tra ve
			- Access modifier: public
			- Khong tham so: ham khoi tao mac dinh
			- Co tham so
		*/
		Hummans(){
			
		}
		Hummans(string n = "HCM", int a = 11);
		// setter
		void setName(string strName);
		void setAge(int a);
		
		// getter
		
		string getName();
		int getAge();
		void HienThi();
		
		/* Ham huy Destructor
		 - CUng ten voi lop
		 - Co dau ~ phia truoc
		 - khong co du lieu tra ve
		 - Access modifier : public
		*/
		~Hummans();
				
};

Hummans::Hummans(string n, int a)
{
	cout<<"Vua khoi tao doi tuong";
	name = n;
	age = a;
}

void Hummans::setName(string strName)
{
	name = strName;
}
void Hummans::setAge(int a){
	age = a;
}
string Hummans::getName(){
	return name;
}
int Hummans::getAge(){
	return age;
}
void Hummans::HienThi(){
	cout<<endl<<name<<"   "<<age;
}
Hummans::~Hummans(){
	cout<<"\nVua huy doi tuong";
}

int main(){
	Hummans connguoi("QUOC SU ", 12);
	connguoi.HienThi();
	connguoi.setName("NGUYEN QUCO SU");
	connguoi.HienThi();
	
}


